﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoginControl.ascx.cs" Inherits="A5Site.LoginControl" %>
<script runat="server">
   
    string username, password;

    protected void Page_Load(object sender, EventArgs e)
    {
        HttpCookie myCookie = Request.Cookies["cook"];
        if ((myCookie == null) || (myCookie["name"] == ""))
        {
            //do nothing
           // myCookie["message"] = "Log-in not valid";
           // Response.Cookies.Add(myCookie);
            lblName.Text = "Welcome unknown user";

        }
        else if (myCookie["name"] != "")
        {
            lblName.Text = "Welcome " + myCookie["name"];

        }
        else
        {
            lblName.Text = "Welcome unknown user";
        }
    }   

</script>


<asp:Label ID="lblName" runat="server"></asp:Label>


